import javax.swing.*;
import java.awt.*;
import java.awt.image.*;

public abstract class Pen{
  protected Palette currentPalette;
  protected BufferedImage kanvasImage;
  protected BufferedImage previewImage;
  protected JPanel inputPanel;
  public void setKanvasImage(BufferedImage kanvasImage){
    this.kanvasImage = kanvasImage;
  }
  public void setPreviewImage(BufferedImage previewImage){
    this.previewImage = previewImage;
    this.drawPreview();
  }
  public void setPalette(Palette currentPalette){
    this.currentPalette = currentPalette;
  }
  public abstract void drawPreview();
  public abstract void select();
  public abstract String getName();
  public abstract void penUp(int x, int y);
  public abstract void penDown(int x, int y);
  public abstract void penDrag(int x, int y);
}

